<?php


namespace app\admin\model;


use think\Model;

class Category extends Model
{

    //自动写入时间
    protected $autoWriteTimestamp = true;

    /**
     * 时间格式化
     * @var string
     */
    protected $dateFormat = 'Y-m-d H:i:s';

    public function getCategoryList($where, $field = '*')
    {
        $where['is_del'] = 0;
        return self::field($field)->where($where)->select()->toArray();
    }
}